package D12_13_z;

/**
 * Created by dingw on 2019/12/12.
 */
//用户
public class User {
    //用户id
    private String id;
    //用户名
    private String username;
    //密码
    private String password;
    private String phone;
    //小金库
    private Double money;
    //角色（管理员、普通用户）
    private String role;



    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public User(String id, String username, String password, String phone,String role,Double money) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.money = money;
        this.role = role;
    }

    public User(String id, String username, String password, String role, Double money) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.money = money;
        this.role = role;
    }



    public User() {
    }

    public User(String id, String username, String password, String role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.role = role;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
